package com.serverlite.framework.servlet.core;

public class WebPage {

    public static final String BASE_URL = "/WEB-INF";
    
    /**
     * Forward page path.
     */
    private String forwardPath;
    
    /**
     * Redirect page path.
     */
    private String redirectPath;

    public WebPage() {
    }

    public WebPage forward(String path) {
        forwardPath = path;
        return this;
    }

    public WebPage redirect(String path) {
        redirectPath = path;
        return this;
    }

    public String getForwardPath() {
        return BASE_URL + forwardPath;
    }

    public String getRedirectPath() {
        return BASE_URL+ redirectPath;
    }
}
